<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
      uni.hideTabBar({}) //tabbr消失 使用自定义
      let token = uni.getStorageSync('token')
      let type = uni.getStorageSync('type')
      // // // //登录状态中
      if(token){
        if(type != 3 && type != 4){
          uni.switchTab({url:"/pages/store/index"})
        }
        if(type == 3 || type == 4){
          uni.switchTab({url:"/pages/index/index"})
        }

        uni.hideHomeButton()
      }

		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	// 全局引入uview样式,必须在第一行
	@import "uview-ui/index.scss";
	@import url("@/assets/css/common.scss");

</style>
